package cn.wenhaha.job;

import java.util.HashMap;
import java.util.Map;

/**
 * --------
 *
 * @author ：wyndem
 * @Date ：Created in 2022-01-28 16:21
 */
public class DynamicJob {

    private String cron;
    private Long jobId;
    private WynJobBean job;
    private String jobGroup;
    private Map<String, Object> data = new HashMap<>(2);

    public DynamicJob(String cron, Long jobId, WynJobBean job, String jobGroup) {
        this.cron = cron;
        this.jobId = jobId;
        this.job = job;
        this.jobGroup = jobGroup;
    }

    public String getCron() {
        return cron;
    }

    public Long getJobId() {
        return jobId;
    }

    public WynJobBean getJob() {
        return job;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public DynamicJob setData(Map<String, Object> data) {
        this.data = data;
        return this;
    }
}
